package plus.easydo.api.factory;

import org.springframework.web.multipart.MultipartFile;
import plus.easydo.api.FileStoreFeignClient;
import plus.easydo.api.vo.FileStoreVo;
import plus.easydo.core.result.DataResult;
import plus.easydo.core.result.R;

/**
 * @author yuzhanfeng
 */
public class FileStoreFallback implements FileStoreFeignClient {


    @Override
    public R<FileStoreVo> saveFile(MultipartFile file, String fileName, String filePath, String bucketName) {
        return DataResult.fail("请求异常，请稍候再试");
    }

    @Override
    public R<Object> remove(String bucketName, String fileName, String filePath) {
        return DataResult.fail("请求异常，请稍候再试");
    }
}
